import asyncio

def fun(n):
    a = 0
    b = 1

    i = 0
    while i < n:
        yield a
        a, b = b, a + b
        i += 1
obj = fun(10)
print(obj.send(None))
print(obj.send(None))
print(obj.send(None))
print(obj.send(None))
print(obj.send(None))
print(obj.send(None))
print(obj.send(None))
